<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php $this->load->view('admin/partials/general_menu'); ?>

<?php 
	$ci = & get_instance(); 
	$rs = $ci->db->where('id',1)->get('default_cpg_status')->result();
?>

<div class="clrboth"></div>
	
<h3>Setting</h3>

<div class="clrboth"></div> 
<form action="<?php echo site_url('admin/dataman/general/setting_submit');?>" name="setting_submit" id="setting_submit" method="post" enctype="multipart/form-data" >
	<div class="clrboth"></div>		
	<div class="grid2">&nbsp;</div>
	<div class="grid6"><input type="button" class="button" value="Reset Coins" onclick="javascript:general_doResetCoins();" /> </div>
	<div class="clrboth"></div>	
	
	<br/> 
	
	<div class="grid2"><span class="bold">Maximum Coins Betting:</span></div>
	<div class="grid6"><input type="text" maxlength="25" id="max_coins" name="max_coins" value="<?php echo intval($rs[0]->name);?>" class="std-input"/></div>
	
<div class="clrboth"></div>		
	
<div class="clrboth"></div>		
	<div class="grid2">&nbsp;</div>
	<div class="grid6"><input type="submit" class="button" /> <?php echo loader_image('id="loader_image" class="hidden"');?></div>
	<div class="clrboth"></div>	
	
</form>

<script type="text/javascript">
	function general_doResetCoins(){
		queryURL('<?php echo site_url("admin/dataman/general/reset_coins");?>');
	}
</script>